package com.bjsxt.userCenter.common.util;

import java.util.Random;

public class RegexUtil
{
	private static String souStr = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
	public static String getRandom(int count)
	{
		StringBuilder sb = new StringBuilder();
		Random random = new Random();
		for (int i = 1; i <= count; i++)
		{
			int index = random.nextInt(souStr.length());
			char cr = souStr.charAt(index);
			sb.append(cr);
		}
		return sb.toString();
	}
	
	/*public static void main(String[] args)
	{
		System.out.println(getRandom(32));
	}*/
}
